package sk.marek.barak.client;

import java.io.Serializable;
import java.util.Date;
public class UserThought implements Serializable,Comparable<UserThought> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7258575074122798178L;
	/**
	 * 
	 */

	private String text;
	private Date date;
	private String user;
	private String key;
	private String userId;

	public void setThoughtId(String key){
		this.key = key;
	}
	public String getThougKey(){
		return key;
	}
	
	public UserThought(){
		this.text="NA";
		this.user="NA";
		this.date= new Date();
		this.key= "NA";

	}
	public UserThought(String key){
		this.text = "";
		this.user = "";
		this.date = new Date();
		this.key = key;
	}


	public String getText() {
		return text;
	}


	public void setText(String text) {

		this.text = text;
	}


	public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}


	public String getUser() {
		return user;
	}


	public void setUser(String user) {
		this.user = user;
	}

	@Override
	public int compareTo(UserThought arg0) {
		return arg0.getDate().compareTo(this.date);
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	
	
}
